let { db } = require('../../tools');

module.exports = (req, res) => {
    // console.log(req.query);
    db.collection('pays')
        .findMany(null)
            .then(data => {
                res.json({errno: 0 , data})
            })
            .catch(err => res.json(err))
}